﻿using System;
using System.Web;
using System.Web.UI;

namespace SouthernLand.Common
{
    public class Common : Page
    {
        // Methods
        public static void ErrorMessage(string strError)
        {
            HttpContext.Current.Response.Redirect(HttpContext.Current.Request.ApplicationPath + "/error.aspx?error=" +
                                                  strError);
        }

        public static string GetFileName()
        {
            return (DateTime.Now.Day + DateTime.Now.Month.ToString() + DateTime.Now.Year + DateTime.Now.Hour +
                    DateTime.Now.Minute + DateTime.Now.Second + DateTime.Now.Millisecond);
        }
    }
}